package cn.wolfcode.luowowo.scenic.service.impl;


import cn.wolfcode.luowowo.scenic.domain.TicketDetail;
import cn.wolfcode.luowowo.scenic.mapper.TicketDetailMapper;
import cn.wolfcode.luowowo.scenic.service.ITicketDetailService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TicketDetailServiceImpl implements ITicketDetailService {
    @Autowired
    private TicketDetailMapper ticketDetailMapper;

    @Override
    public List<TicketDetail> listByTicketId(Long ticketId) {
        return ticketDetailMapper.selectByTicketId(ticketId);
    }

    @Override
    public TicketDetail getById(Long id) {
        return ticketDetailMapper.selectByPrimaryKey(id);
    }
}
